function common(http) {
    return {
        // 上传文件
        uploadCommonFile(parameters = {}) {
            return http.post(`/api/monitor_warning/common/attachmentUpload`, parameters)
        },

        // 删除文件
        delCommonFile(parameters = {}) {
            return http.delete(`/api/monitor_warning/common/attachmentDelete`, {params: parameters})
        },

        // 通过文件id获取文件信息
        getFileInfoById(parameters = {}) {
            return http.get(`/api/monitor_warning/common/getFileInfoById`, {params: parameters})
        },

        // 获取通用配置
        getReportConf(parameters) {
            return http.get('/api/monitor_warning/manage/getReportConf', {params: parameters})
        },

        // 保存通用配置
        setReportConf(parameters) {
            return http.post('/api/monitor_warning/manage/setReportConf', parameters)
        },
    }
}

export default common
